package cn.jilian.dao.support;

import javax.persistence.EntityManager;
import javax.persistence.PrePersist;

import org.apache.commons.lang3.StringUtils;

import cn.jilian.entity.Attr;

/**
 * 属性备注更新
 * */
public class AttrTextUpdateListener {

	private EntityManager em;
	
	public AttrTextUpdateListener() {
		
	}
	
	@PrePersist
    public void initEntity(Attr attr){
		if(attr!=null&&StringUtils.isNotBlank(attr.getText())) {
			Long fid=attr.getFid();
			String name=attr.getName();
			Long metaId=attr.getMeta();
		}
		
	}
}
